package com.lambda;

public class Test3 {

    public static void printNum(IPrint<Integer> p,Integer num){
         p.print(num);
    }

    public static void printString(IPrint<String> p,String s){
        p.print(s);
    }

    public static void main(String[] args){

        printNum( (s)->{System.out.println(s);} ,12);

        printString(System.out::println,"welcome");
    }
}
